/*
 * @Description: 
 * @Author: Jimmy
 * @Date: 2023-07-23 09:13:11
 * @LastEditTime: 2023-07-25 20:10:04
 * @LastEditors:  
 */
/**
 * 
 * @param data    返回的数据内容
 * @param current 当前页面
 * @param total   总数据
 * @param size    每页数据条数
 * @returns 
 */
export const pagination = (list: any= [], current: number = 1, total: number = 0, size: number = 10) => {
    return {
        list,
        current,
        total,
        pages: Math.ceil(total / size),
        size
    }
}